<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="styles.css" />
    <title>Simple Carousel</title>
    <style>
      .card {
        width: 200px;
        height: 300px;
        perspective: 1000px; /* 用于创建3D空间 */
      }

      .face {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden; /* 当元素不可见时隐藏背面 */
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* 添加过渡效果 */
      }

      .front {
        background-color: #bbb;
        color: black;
        text-align: center;
        z-index: 2; /* 在默认状态下，正面在最上面 */
        transform: rotateY(0deg);
      }

      .back {
        background-color: dodgerblue;
        color: white;
        transform: rotateY(180deg);
        /* 卡片背面的内容 */
      }

      /* 当鼠标悬停在卡片上时，卡片翻转 */
      .card:hover .front {
        transform: rotateY(180deg);
      }

      .card:hover .back {
        transform: rotateY(360deg);
      }
    </style>
  </head>
  <body>
    <div class="card">
      <div class="face front">
        <img src="../src/assets/src1.png" alt="Card Image" />
      </div>
      <div class="face back">
        <p>卡片背面的内容</p>
      </div>
    </div>
    <script>
    </script>
  </body>
</html>
